<div class="bg-light lter b-b wrapper-md">
  <h1 class="m-n font-thin h3">客服中心</h1>
</div>

<div class="wrapper-md">
  <div class="panel panel-default">
    <div class="panel-heading">
      邀请人信息
    </div>
    <toaster-container toaster-options="{'position-class': 'toast-center', 'close-button':true}"></toaster-container>
    <div class="panel-body b-b b-light">
      <div class="col-sm-2">
        <label><font><font>注册手机号:</font></font></label>
        <input id="filter" type="text" ng-model="inviteinfoData.Mobile" class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required">
      </div> 
      <div class="col-sm-2">
        <label><font><font>是否投资:</font></font></label>
        <select class="form-control ng-pristine ng-untouched ng-invalid ng-invalid-required" ng-model="inviteinfoData.IsInvest" name="">
          <option value="0">全部</option>   
          <option value="1">是</option>
          <option value="2">否</option>
        </select>
      </div>
        <button class="btn btn-info btn-addon" ng-if='!graybtn' style="margin-top: 25px;" ng-click="queryUser()">查询</button>
        <button class="btn btn-light btn-addon" style="margin-top: 25px;" ng-if='graybtn'>查询</button>
    </div>
    <div class="panel-body b-b b-light">
      <div class="col-sm-4">
        总邀请人数：<span ng-bind="inviteinfo.Shares?inviteinfo.Shares+'人':'0人'"></span>
      </div>
      <div class="col-sm-4">
        已投资人数：<span ng-bind="inviteinfo.Investeds?inviteinfo.Investeds+'人':'0人'"></span>
      </div>
      <div class="col-sm-4">
        未投资人数：<span ng-bind="inviteinfo.EnInvests?inviteinfo.EnInvests+'人':'0人'"></span>
      </div>
    </div>
    <div class="panel-body b-b b-light">
      <div class="col-sm-4">
        投资总金额：<span ng-bind="inviteinfo.InvestPrice?inviteinfo.InvestPrice+'元':'0元'"></span>
      </div>
      <div class="col-sm-4">
        天天赚投资总金额：<span ng-bind="inviteinfo.InvestPriceDay?inviteinfo.InvestPriceDay+'元':'0元'"></span>
      </div>
      <div class="col-sm-4">
        月月赚投资总金额：<span ng-bind="inviteinfo.InvestPriceMonth?inviteinfo.InvestPriceMonth+'元':'0元'"></span>
      </div>
    </div>
    <div class="panel-body b-b b-light">
      <div class="col-sm-12">
        累计获得奖金：<span ng-bind="inviteinfo.Prizes?inviteinfo.Prizes+'元':'0元'"></span>
      </div>
    </div>
    <div class="table-responsive">
      <table id="tab" class="table table-striped m-b-none">
        <thead>
          <tr>
            <th style="min-width:60px">序号</th>
            <th style="min-width:100px">用户ID</th>
            <th style="min-width:60px">姓名</th>
            <th style="min-width:120px">注册手机号</th>
            <th style="min-width:100px">是否投资</th>
            <th style="min-width:120px">累计投资金额</th>
            <th style="min-width:180px">天天赚投资总金额</th>
            <th style="min-width:180px">月月赚投资总金额</th>
            <th style="min-width:180px">第一笔有效投资金额</th>
            <th style="min-width:180px">第二笔有效投资金额</th>
            <th style="min-width:180px">第三笔有效投资金额</th>
            <th style="min-width:120px">第一笔奖金</th>
            <th style="min-width:120px">第二笔奖金</th>
            <th style="min-width:120px">第三笔奖金</th>
            <th style="min-width:150px">注册时间</th> 
          </tr>
        </thead>
        <tbody>
          <tr ng-if="inviteinfo.MyShareList.Data==''"><td colspan="9">当前无任何数据</td></tr>
          <tr ng-repeat="obj in inviteinfo.MyShareList.Data track by $index">
            <td ng-bind="$index+1"></td>
            <td ng-bind="obj.UserId"></td>
            <td ng-bind="obj.FullName"></td>
            <td ng-bind="obj.Mobile"></td>
            <td ng-bind="obj.IsInvest?'是':'否'"></td>
            <td ng-bind="obj.InvestPrice?obj.InvestPrice:0"></td>
            <td ng-bind="obj.InvestPriceDay"></td>
            <td ng-bind="obj.InvestPriceMonth"></td>
            <td ng-bind="obj.InvestPriceOne?obj.InvestPriceOne:0"></td>
            <td ng-bind="obj.InvestPriceTwo"></td>
            <td ng-bind="obj.InvestPriceThree"></td>
            <td ng-bind="obj.PrizeOne"></td>
            <td ng-bind="obj.PrizeTwo"></td>
            <td ng-bind="obj.PrizeThree"></td>
            <td ng-bind="obj.CreateTime|date:'yyyy-MM-dd HH:mm:ss'"></td>
          </tr>
        </tbody>
      </table>
    </div>
  </div>
  <div class="btn-group pull-right">
    <button type="button" class="btn btn-default" ng-click="prev()"><font><font>上一页</font></font></button>
    <button type="button" class="btn btn-default btnNum">{{inviteinfoData.Index}}</button>
    <button type="button" class="btn btn-default" ng-click="next()"><font><font>下一页</font></font></button>
    <span class="btn btn-default">共<span ng-bind="inviteCount+'条数据'"></span></span>
    
  </div>
